<?php
class JobStatus
{
  const ERROR        = "Error";
  const INFO         = "Info";
  const SUCCESSFUL   = "Successful";
  const WARNING      = "Warning";
  
  protected $message = "";
  protected $type    = self::WARNING;
  
  public function __construct($type, $message)
  { 
    if($type==self::ERROR || $type==self::INFO || $type==self::SUCCESSFUL || $type==self::WARNING)
    {
      $this->type = $type;
    }
    
    $this->message = $message;
  }
  
  public function getMessage()
  {
    return $this->message;
  }
  
  public function getType()
  {
    return $this->type;
  }
}